package com.ye.zcswzlms.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 叶德辉
 * @since 2020-12-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Users implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.UUID)
    private String id;
    /**
     * 学号
     */
    @TableField("stuNo")
    private String stuNo;

    /**
     * 姓名
     */
    private String name;

    /**
     * 密码
     */
    private String password;


    /**
     * 电话
     */
    private String tel;
    /**
     * 管理员
     */
    @TableField("userMark")
    private String userMark;

    /**
     * 分数
     */
    private Integer grade;

    /**
     * 密码盐
     */
    @TableField("passwordSalt")
    private String passwordSalt;

    /**
     * 乐观锁
     */
    @Version
    private Integer version;

    /**
     * 逻辑删除
     */
    @TableLogic
    private Integer deleted;
    /**
     * 创建时间
     */
    private LocalDateTime creatTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;


}
